<template>
    <div class="file-attachment-warp">
        <a-card title="附件信息">
            <a-table :dataSource="model.list" :columns="columns" :pagination="false"/>
        </a-card>
    </div>
</template>

<script lang='ts' setup>
    import { ref } from 'vue';
    defineOptions({
        // 附件信息
        name: 'FileAttachment'
    });
    const model = defineModel({
        type: Object, // 类型检查
        required: true, // 是否必填
        // 默认值
        default: {}, 
    });
    const columns = ref([
        { title: '附件类别', dataIndex: 'attachmentType', key: 'attachmentType'},
        { title: '文件名称', dataIndex: 'fileName', key: 'fileName'},
        { title: '文件类型', dataIndex: 'fileType', key: 'fileType'},
        { title: '查看内容', dataIndex: 'filesContent', key: 'filesContent'},
        { title: '上传时间', dataIndex: 'createTime', key: 'createTime'},
    ]);
</script>

<style scoped lang="less">
</style>